package com.level2app.ui.home;

import com.level2app.R;
import com.level2app.adapter.NotificationsAdapter;
import com.level2app.base.BaseActivity;
import com.level2app.base.BaseViewModel;
import com.level2app.bean.NotificationsBean;
import com.level2app.databinding.ActivityNotificationsBinding;

import java.util.ArrayList;
import java.util.List;

public class NotificationsActivity extends BaseActivity<ActivityNotificationsBinding, BaseViewModel> {

    private NotificationsAdapter adapter;
    private List<NotificationsBean> data = new ArrayList<>();

    @Override
    protected BaseViewModel bindModel() {
        return getViewModel(this, BaseViewModel.class);
    }

    @Override
    protected void initInject() {
        getActivityComponent().inject(this);
    }

    @Override
    protected void initData() {
        initTitleBar(getString(R.string.notifications));
        data.add(new NotificationsBean());
        data.add(new NotificationsBean());
        data.add(new NotificationsBean());
        data.add(new NotificationsBean());
        data.add(new NotificationsBean());
        adapter = new NotificationsAdapter(context);
        binding.recyclerView.setAdapter(adapter);
        adapter.submitList(data);
    }
}